package com.ruoyi.matrix.task

import com.ruoyi.common.utils.ip.IpUtils
import org.slf4j.LoggerFactory
import org.springframework.boot.CommandLineRunner
import org.springframework.stereotype.Component

@Component
class RunAfterStartup(
) : CommandLineRunner {

    private val logger = LoggerFactory.getLogger(RunAfterStartup::class.java)

    override fun run(vararg args: String) {
        logger.info("开始服务端自行任务: pro={}, hostname={}", IpUtils.isPro(), IpUtils.getHostName())
    }
}